package main

import (
	"HelloGo/packageone"
	"fmt"
)

// 全局变量（这里叫包变量，对整个包显示）
var one = "One"

func main() {
	// 这会覆盖全局变量
	var one = "this is a shadow variable, a block level variable."

	fmt.Println(one)

	myFunc()

	newString := packageone.PublicVar
	fmt.Println("Form packageone:", newString)

	packageone.Exported()
}

func myFunc() {
	//var one = "the number one"
	fmt.Println(one)
}
